home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Cell Control / DATA1.CAB / VCDEMO_Files / DragDlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-11  |  1.2 KB  |  55 lines

  1. // DragDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "VCDemo.h"
  6. #include "DragDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDragDlg dialog
  16.  
  17.  
  18. CDragDlg::CDragDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CDragDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CDragDlg)
  22.         // NOTE: the ClassWizard will add member initialization here
  23.     //}}AFX_DATA_INIT
  24. }
  25.  
  26.  
  27. void CDragDlg::DoDataExchange(CDataExchange* pDX)
  28. {
  29.     CDialog::DoDataExchange(pDX);
  30.     //{{AFX_DATA_MAP(CDragDlg)
  31.     DDX_Control(pDX, IDC_SGCTRL1, m_ctrl);
  32.     //}}AFX_DATA_MAP
  33. }
  34.  
  35.  
  36. BEGIN_MESSAGE_MAP(CDragDlg, CDialog)
  37.     //{{AFX_MSG_MAP(CDragDlg)
  38.     //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CDragDlg message handlers
  43.  
  44. BOOL CDragDlg::OnInitDialog() 
  45. {
  46.     CDialog::OnInitDialog();
  47.     
  48.     // TODO: Add extra initialization here
  49.     m_ctrl.SetPageLabelVisible( FALSE );
  50.     COleVariant var( "VCDEMO" );
  51.     m_ctrl.DoSetMessageTitle( var );
  52.     return TRUE;  // return TRUE unless you set the focus to a control
  53.                   // EXCEPTION: OCX Property Pages should return FALSE
  54. }
  55.